package com.thyme.system.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Objects;

/**
 * <p>
 * 
 * </p>
 *
 * @author nana
 * @since 2021-03-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("iec61850_data_inst")
@ApiModel(value="Iec61850DataInstVo对象", description="")
public class Iec61850DataInstVo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "do_path")
    private String doPath;


    @ApiModelProperty(value = "LDevice inst")
    private String ldInstName;

    @ApiModelProperty(value = "LN inst")
    private String lnInstName;


    @ApiModelProperty(value = "节点名称")
    private String doName;

    @ApiModelProperty(value = "数据类型")
    private String fc;


    @ApiModelProperty(value = "LD描述信息")
    private String ldInstDesc;

    @ApiModelProperty(value = "LN描述信息")
    private String lnInstDesc;

    @ApiModelProperty(value = "节点描述")
    private String doDesc;

    @ApiModelProperty(value = "IED主键")
    private Integer iec61850IedInstId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Iec61850DataInstVo that = (Iec61850DataInstVo) o;
        return Objects.equals(doPath, that.doPath);
    }

    @Override
    public int hashCode() {
        return Objects.hash(doPath);
    }
}
